package com.example.sys.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value="MenuContactBackendReq对象", description="后端接口关联菜单对象")
public class MenuContactBackendReq {

    @NotNull(message = "菜单id不能为空")
    @ApiModelProperty(value = "菜单id")
    private Long menuId;

    @NotEmpty(message = "后端接口id为空")
    @ApiModelProperty(value = "后端接口id集合")
    private List<Long> backendInterfaceIdList;
}
